Global Index
HTML5 JS API Index > Browser Tutorials & Specs

ErrorEventInit

Extends EventInit.

This type represents a collection of object properties and does not have an explicit JavaScript representation.

Properties
unsigned long
colno
The colno attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to zero. It represents the column number where the error occurred in the script.
any
error
The error attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to null. Where appropriate, it is set to the object representing the error (e.g. the exception object in the case of an uncaught DOM exception).
DOMString
filename
The filename attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to the empty string. It represents the absolute URL of the script in which the error originally occurred.
unsigned long
lineno
The lineno attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to zero. It represents the line number where the error occurred in the script.
DOMString
message
The message attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to the empty string. It represents the error message.
Referenced by
ErrorEventErrorEvent(...)